import    React  from  "react";
import   {HashRouter,Switch,Route} from  "react-router-dom";
import   Home  from "../view/home";
import   Login  from  "../view/login";
class   Router  extends React.Component{
    
    render(){
        return(
            <div>
             <HashRouter>
                 <Switch>
                 <Route path="/login" component={Login}></Route>
                 <Route path="/" component={Home}></Route>
                 </Switch>
             </HashRouter>
            </div>
        )
    }
}
export  default  Router;